package com.md.network.api

import io.reactivex.rxjava3.core.Observable
import retrofit2.http.GET
import retrofit2.http.Path
import retrofit2.http.Query
import retrofit2.http.QueryMap

interface ApiServiceV2 {
    @GET("categories")
    fun getCategoriesList(): Observable<ArrayList<Category>>

    @GET("daily")
    fun getDailyAlbums(): Observable<ArrayList<Album>>

    @GET("category/{id}")
    fun getCategoryInfo(@Path("id") id: Int): Observable<Category>

    @GET("album/{id}")
    fun getAlbumInfo(@Path("id") id: Int): Observable<Album>

    @GET("audio/{id}")
    fun getAudioInfo(@Path("id") id: Int): Observable<Audio>

    @GET("audios")
    fun searchResult(@Query("page")page:Int, @Query("size")size:Int, @Query("keyword")keyword:String): Observable<SearchResult>

}